<?php $this->load->view('sys_header');?>

<script type="text/javascript">


    function ajax_submit(){


        $.messager.progress();
        $.ajax({
            type:"post",
            dataType:'json',
            url:'<?php echo made_admin_url('message/edit?action=more');?>',
            data:$('#cpform').serialize(),
            success:function(r){
                if(r && r.success)
                {
                    $.messager.progress('close');
                    $.messager.confirm('成功提示','回复成功，返回信息列表。',function(b){
                        if(b)
                        {
                            window.location.href='<?php echo made_admin_url('message');?>';
                            return false; //hack ie6跳转无效
                        }

                    });
                }
                else
                {
                    lin.msg('发生错误，数据提交失败！','error');
                }
            }
        });

    }







</script>

<div class="nav">
    <h2><a href="<?php echo made_admin_url('main/mainfra');?>">TAYCMS后台管理</a> >  <a href="<?php echo made_admin_url('message');?>">客户留言管理</a> > 修改 </h2>
</div>



<div class="contenter">
    <div class="editpage">
    <h1></h1>
    <div class="ml"></div>

    <div id="editform">

        <form name="cpform" method="post" autocomplete="off"    id="cpform"   >

            <table  width="100%" border="0" align="left" cellpadding="0" cellspacing="0" >
                <TR>
                    <TD width="100%">

                        <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0"  >

                            <tr>
                                <td>留言内容：</td>
                                <td>
                                    <table border="0" align="left" cellpadding="0" cellspacing="0" >
                                        <tr>
                                            <td>姓名：</td>
                                            <td><?php echo $items['txt_Name'];?></td>
                                        </tr>
                                        <tr>
                                            <td>性别：</td>
                                            <td><?php echo $items['dropSex'];?></td>
                                        </tr>
                                        <tr>
                                            <td>职位：</td>
                                            <td><?php echo $items['txt_Position_Name'];?></td>
                                        </tr>
                                        <tr>
                                            <td>公司名称：</td>
                                            <td><?php echo $items['txt_Company_Name'];?></td>
                                        </tr>
                                        <tr>
                                            <td>邮箱：</td>
                                            <td><?php echo $items['txt_Email'];?></td>
                                        </tr>
                                        <tr>
                                            <td>电话：</td>
                                            <td><?php echo $items['txt_Phone'];?></td>
                                        </tr>
                                        <tr>
                                            <td>传真：</td>
                                            <td><?php echo $items['txt_Fax'];?></td>
                                        </tr>
                                        <tr>
                                            <td>主题：</td>
                                            <td><?php echo $items['txt_Title'];?></td>
                                        </tr>
                                        <tr>
                                            <td>内容：</td>
                                            <td><?php echo $items['txt_Content'];?></td>
                                        </tr>


                                    </table>


                                </td>
                            </tr>
                            <tr>
                                <td width="12%" height="30">回复内容：</td>
                                <td width="88%">
                                    <?php echo load_editor($items['reply'],'reply'); ?>
                                </td>
                            </tr>
                        </table>
                    </TD>
                </TR>
                <tr>
                    <td height="30" colspan="2" align="center">
                        <br><br>
                    <label>
                        <input name="id" type="hidden"  value="<?php echo $items['id']; ?>"    />
                        <input name="submit" type="button" id="submit" value="提交" onclick="ajax_submit()"   class="sub_btn" />
                    </label>
                        <label>
                            <input name="re" type="button" id="re" value="返回" onclick="window.location.href='<?php echo made_admin_url('message');?>'"   class="sub_btn" />
                        </label>
                    </td>
                </tr>
            </table>


        </form>


    </div>

</div>
</div>







<?php $this->load->view('sys_footer');?>